$def with(users)
<h3 class="page-title">用户管理</h3>
<div class="btn-toolbar">
    <a href="/users/new" class="btn btn-primary"><i class="icon-plus"></i> 新增用户</a>
</div>
<div class="">
    <table class="table table-striped table-bordered rounded-corner">
      <thead>
        <tr>
          <th>登录名</th>
          <th>姓名</th>
          <th>是否管理员</th>
          <th style="width: 106px;"></th>
        </tr>
      </thead>
      <tbody>
      $for user in users:
	    <tr>
	        <td>$user.login_name</td>
	        <td>$user.user_name</td>
            <td>
            $if user.is_admin:
                是
            $else:
                否
            </td>
	        <td>
              <a href="/users/$user.id/edit"><i class="icon-pencil"></i>编辑</a>
              <a href="/users/$user.id/delete" onClick="return confirm('确定删除?');"><i class="icon-remove"></i>删除</a>
          </td>
	    </tr>

      </tbody>
    </table>
</div>

